package com.leco.demo.spring.beans;

/**
 * @author greg
 * @version 2022/10/20
 **/
public class Cat extends Animal {
    public Cat() {
        System.out.println("Cat类构造方法执行了");
    }

    public Cat(String name) {
        System.out.println("Cat类有参构造方法执行了");
        setName(name);
    }

    @Override
    public void cry() {
        System.out.println("小猫[" + getName() + "]喵喵叫");
    }
}
